package com.xsh.service.impl;

import com.xsh.mapper.GoodsTypeMapper;
import com.xsh.pojo.GoodsType;
import com.xsh.service.GoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GoodsTypeServiceImpl implements GoodsTypeService {

    @Autowired
    private GoodsTypeMapper goodsTypeMapper;

    @Override
    public List<String> queryAll() {
        return goodsTypeMapper.selectAll();
    }

    @Override
    public GoodsType queryByTypeName(String typeName) {
        return goodsTypeMapper.selectByTypeName(typeName);
    }
}
